package com.example.back.Repository;

import com.example.back.Entity.Star;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface StarRepository extends JpaRepository<Star,Long> {
    Star findStarByStarUserIdAndStarProductId(long userId,long productId);
    Page<Star> findStarsByStarUserId(long userId, Pageable pageable);
}
